package de.baumann.browser.views.dialog

import android.content.Context
import de.baumann.browser.R
import de.baumann.browser.activitys.user.BindETHActivity
import de.baumann.browser.utils.getUser
import kotlinx.android.synthetic.main.dialog_recharge_warn.*

/**
 *@author:
 *@date:2019/8/28 10:47
 *@discription:充值警告
 */
class RechargeWarnDialog(context: Context) : BaseDialog(context) {
    override fun laoutId(): Int {
        return R.layout.dialog_recharge_warn
    }

    override fun initView() {
        tvWarnEth.text = getUser()?.eth_address

        btnRechargConfirm.setOnClickListener {
            dismiss()
        }

        btnChangeEth.setOnClickListener {
            BindETHActivity.startBindETHActivity(context, getUser()!!.eth_address)
            dismiss()
        }
    }

}